package com.uzai.console.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.uzai.console.dto.mermobilerecharge.MerMobileRechargeQuery;
import com.uzai.console.entity.MerMobileRecharge;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Repository
public interface MerMobileRechargeMapper {
    int deleteById(@Param("id") Long id);

    int insert(MerMobileRecharge record);

    int insertSelective(MerMobileRecharge record);

    MerMobileRecharge selectById(@Param("id") Long id);

    int updateByIdSelective(MerMobileRecharge record);

    int updateById(MerMobileRecharge record);

    int updateStatus(MerMobileRecharge record);

    /**
     * 分页查询
     * @param page
     * @param query
     * @return
     */
    ArrayList<MerMobileRecharge> findByList(Page<MerMobileRecharge> page, @Param("query") MerMobileRechargeQuery query);

    /**
     * 查询所有
     * @param query
     * @return
     */
    ArrayList<MerMobileRecharge> findByList(@Param("query") MerMobileRechargeQuery query);
}